import { lazy } from 'react'
import { Navigate } from 'react-router-dom'

// 考核
var Achievements = lazy(() => import('../views/zz/Achievements/Achievements'))
// 考核计划
var AchieFirst = lazy(() => import('../views/zz/Achievements/AchieFirst'))
//新增考核计划
var AchiefirstAdd = lazy(() => import('../views/zz/Achievements/AchieFirstAdd'))
// 考核进度
var AchieSeconds = lazy(() => import('../views/zz/Achievements/AchieSecond'))
// 员工绩效档案
var AchieThird = lazy(() => import('../views/zz/Achievements/AchieThird'))
//员工绩效档案详情
var AchieThirdMore = lazy(() => import('../views/zz/Achievements/AchieThirdMore'))
// 设置 指标库
var AchieForthOne = lazy(() => import('../views/zz/Achievements/AchieForth/AchieForthOne'))
// 考核模板
var AchieForthTwo = lazy(() => import('../views/zz/Achievements/AchieForth/AchieForthTwo'))
// 新增考核模板
var AchieForthTwoAdd = lazy(() => import('../views/zz/Achievements/AchieForth/AchieForthTwoAdd'))
// 绩效设置
var AchieForthThree = lazy(() => import('../views/zz/Achievements/AchieForth/AchieForthThree'))
//发起考核
var AchieGo = lazy(() => import('../views/zz/Achievements/AchieGo'))
// 编辑
var AchieEdit = lazy(() => import('../views/zz/Achievements/AchieEdit'))
// //审批管理
// var ApprovalFirst = lazy(() => import('../views/zz/Approval/ApprovalFirst'))
// // 审批表单
// var ApprovalSecond = lazy(() => import('../views/zz/Approval/ApprovalSecond'))


let zzConfig = [

    {
        path: '/index/achievements',
        element: <Achievements />,
        children: [
            {
                path: '/index/achievements/achieFirst',
                element: <AchieFirst />,
            },
            {
                path: '/index/achievements/achieFirstAdd',
                element: <AchiefirstAdd />,
            },

            {
                path: '/index/achievements/achieSeconds',
                element: <AchieSeconds />,
            },
            {
                path: '/index/achievements/achieThird',
                element: <AchieThird />,
            },
            {
                path: '/index/achievements/achieThirdMore',
                element: <AchieThirdMore />,
            },
            {
                path: '/index/achievements/achieForthOne',
                element: <AchieForthOne />,
            },
            {
                path: '/index/achievements/achieForthTwo',
                element: <AchieForthTwo />,
            },
            {
                path: '/index/achievements/achieForthTwoAdd',
                element: <AchieForthTwoAdd />,
            },
            {
                path: '/index/achievements/achieForthThree',
                element: <AchieForthThree />,
            },
            {
                path: '/index/achievements/achieGo',
                element: <AchieGo />,
            },
            {
                path: '/index/achievements/achieEdit',
                element: <AchieEdit />,
            },
            {
                path: '/index/achievements',
                element: <Navigate to="/index/achievements/achieFirst" />
            },

        ]
    },
    // {
    //     path: '/index/Approval/approvalSecond',
    //     element: <ApprovalSecond />,
    // },
    // {
    //     path: '/index/Approval/approvalFirst',
    //     element: <ApprovalFirst />,
    // },


]

export default zzConfig